import request from '@/utils/request'

// 查询运营指标数据维护列表
export function listDealIndicatorDataMain(query) {
  return request({
    url: '/indicator/dealIndicatorDataMain/list',
    method: 'get',
    params: query
  })
}

// 查询运营指标数据维护详细
export function getDealIndicatorDataMain(id) {
  return request({
    url: '/indicator/dealIndicatorDataMain/' + id,
    method: 'get'
  })
}

// 查询运营指标数据维护详细
export function getDealIndicatorDataMainByDealId(dealId) {
  return request({
    url: '/indicator/dealIndicatorDataMain/getDealIndicatorDataMainByDealId/' + dealId,
    method: 'get'
  })
}

// 保存运营指标数据维护
export function saveDealIndicatorDataMain(data) {
  return request({
    url: '/indicator/dealIndicatorDataMain/save',
    method: 'post',
    data: data
  })
}

// 删除运营指标数据维护
export function delDealIndicatorDataMain(id) {
  return request({
    url: '/indicator/dealIndicatorDataMain/' + id,
    method: 'delete'
  })
}

// 导出运营指标数据维护
export function exportDealIndicatorDataMain(query) {
  return request({
    url: '/indicator/dealIndicatorDataMain/export',
    method: 'get',
    params: query
  })
}

// 查询运营指标数据维护详细
export function getDealIndicatorDataMainPublic(id) {
  return request({
    url: '/indicator/getDealIndicatorDataMainPublic?id=' + id,
    method: 'get'
  })
}

//
export function auditPage(query) {
  return request({
    url: '/indicator/dealIndicatorDataMain/auditPage',
    method: 'get',
    params: query
  })
}

// 制定填报. 保存信息.并发送邮件
export function specifiedFillingSave(data) {
  return request({
    url: '/indicator/dealIndicatorDataMain/specifiedFillingSave',
    method: 'post',
    data: data
  })
}

// 修改状态
export function updateAudits(data) {
  return request({
    url: '/indicator/dealIndicatorDataMain/updateAudits',
    method: 'post',
    data: data
  })
}

// 分析报表数据
export function listReport(data) {
  return request({
    url: '/indicator/dealIndicatorDataMain/listReport',
    method: 'post',
    data: data
  })
}
